package com.levi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author shentong
 * @since 2022/3/30 8:52 PM
 */
@Data
@ApiModel("商品详情实体对象")
public class ProductDetailVo {
    private Integer id;

    @ApiModelProperty("商品分类")
    private Integer categoryId;

    @ApiModelProperty("商品标题")
    private String name;

    @ApiModelProperty("商品副标题")
    private String subTitle;

    @ApiModelProperty("产品主图,url相对地址")
    private String mainImage;

    @ApiModelProperty("图片地址,json格式,扩展用")
    private String subImages;

    @ApiModelProperty("详情")
    private String detail;

    @ApiModelProperty("价格，单位元，保留两位小数")
    private BigDecimal price;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("状态1-在售，2-下架，3-删除")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
